<?php

$htmlOutput = array();
$htmlOutput[] = '<div class="articles view">';
$htmlOutput[] = sprintf('<h2>%s</h2>', __('Article', true));
$htmlOutput[] = '	<dl>';
$i = 0; 
$class = ' class="altrow"';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Id', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $article['Article']['id'];
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Title', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $article['Article']['title'];
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Introduction', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $article['Article']['introduction'];
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Keywords', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $article['Article']['keywords'];
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Body', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $article['Article']['body'];
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Image', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $article['Article']['image'];
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Created', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $article['Article']['created'];
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('Modified', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $article['Article']['modified'];
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = sprintf('<dt %s>%s</dt>', ($i % 2 == 0)?$class:false, __('User', true));
$htmlOutput[] = sprintf('   <dd %s>', ($i++ % 2 == 0)?$class:false);
$htmlOutput[] =                 $html->link($article['User']['id'], array('controller'=> 'users', 'action'=>'view', $article['User']['id']));
$htmlOutput[] = '			    &nbsp;';
$htmlOutput[] = '		     </dd>';
$htmlOutput[] = '	</dl>';
$htmlOutput[] = '</div>';
$htmlOutput[] = '<div class="actions">';
$htmlOutput[] = '	<ul>';
$htmlOutput[] = sprintf('<li>%s</li>', $html->link(__('Edit Article', true), array('action'=>'edit', $article['Article']['id'])));
$htmlOutput[] = sprintf('<li>%s</li>', $html->link(__('Delete Article', true), array('action'=>'delete', $article['Article']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $article['Article']['id'])));
$htmlOutput[] = sprintf('<li>%s</li>', $html->link(__('List Articles', true), array('action'=>'index')));
$htmlOutput[] = '	</ul>';
$htmlOutput[] = '</div>';

echo implode("\n", $htmlOutput);

?>